package com.hangxiang.approval.common;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
public class ExamineListPageCommon extends PageCommon{
    private static final long serialVersionUID = 498895832223167180L;

    @NotNull(message = "用户id不能为null")
    @Min(value = 1,message = "用户id必须大于0")
    private Integer userId;

    @ApiModelProperty(value = "合同分类id")
    private Integer typeId;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startTime;
    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;

}
